package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IUmConfigInfoDao;
import org.jsbd.boss.domian.UmConfigInfo;

public class UmConfigInfoDaoImpl extends UmengBrushBaseDao implements IUmConfigInfoDao {

	@Override
	public void save(UmConfigInfo umConfigInfo) {
		super.insert("um_config_info.insert_um_config_info", umConfigInfo);
	}

	@Override
	public void save(List<UmConfigInfo> list) {
		super.batchInsert("um_config_info.insert_um_config_info", list);
	}

	@Override
	public int update(UmConfigInfo umConfigInfo) {
		return super.update("um_config_info.update_um_config_info", umConfigInfo);
	}

	@Override
	public UmConfigInfo getById(Integer id) {
		return (UmConfigInfo) super.queryForObject("um_config_info.select_by_id", id);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<UmConfigInfo> getList(UmConfigInfo umConfigInfo) {
		return super.queryForList("um_config_info.select_um_config_info_list", umConfigInfo);
	}

	@Override
	public Integer getListPageCount(UmConfigInfo umConfigInfo) {
		return super.queryForCount("um_config_info.select_um_config_info_page_count", umConfigInfo);
	}
	
	@Override
	public void delete(List<Integer> ids) {
		super.batchUpdate("um_config_info.delete_um_config_info", ids);
	}

	@Override
	public void updateProvinceById(UmConfigInfo umConfigInfo) {
		super.update("um_config_info.update_province_by_id", umConfigInfo);
	}
	
}
